'''Defines the menu and toolbar interface.
All menus are contained inside the 'menus' variable.
'''

from scripts.scripts import *

menus = {
         
   '&File': [
      NewDoc,
      OpenDoc,
      SaveDoc,
      SaveDocAs,
      CloseDoc,
      None,
      Exit
   ],

   '&View': [
      OverlayMaster
   ],
   
   '&Schedule': [
      InsertSchedule,
      DeleteSchedule
   ],
   
   '&Columns': [
      InsertColumnCurrent,
      InsertSpecialColumn
   ],
   
   '&Master': [
      AppendSection,
      InsertSection,
      DeleteSection,
      MoveSectionUp,
      MoveSectionDown,
      None,
      AppendItem,
      InsertItem,
      DeleteItem,
      MoveItemUp,
      MoveItemDown
   ],
   
   '&Help': [
      AboutDlg,
      AboutQtDlg
   ],

   'All': [
      InsertRowCurrent,
      DeleteRowCurrent,
      InsertColumnCurrent,
      DeleteColumnCurrent
   ]
   
}

menulayout = {
   
   'mainwindow' : ['&File', '&View', '&Schedule', '&Columns'],
   'schedules' :  ['All'],
   'sections' :   ['All'],
   'items' :      ['All']
   
}
